<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let arr = Math.floor(Math.random()*(10+1));
        let shu = 0;
        while (shu < 3){
            let num = Number(prompt("请输入一个数字"));
            shu++;
            if (num<arr){
                alert("猜小了");
            }else if(num>arr){
                alert("猜大了");
            }else{
                alert("恭喜，猜这么多次才猜对fvv");
                break;
            }
            if(shu === 3){
                alert("fvv这都没猜对，答案是" + arr);
            }
        }
        document.write("再也不玩抽象了T_T")


        
    </script>
</body>
</html>